import type { VNode,ComponentInternalInstance } from "vue"
//Message组件接收的数据类型
export interface MessageProps {
    message?: string | VNode; //支持传入VNode
    duration?: number; //显示时间，默认3000毫秒
    type?: "success" | "warning" | "info" | "danger"; //消息类型
    isClose?: boolean; //是否显示关闭按钮
    Ondestroy?: () => void; //消息关闭时的回调函数
    offset?: number; //消息的偏移量
    id?:string,
    zIndex?:number
    transition?:string
    icon?:string
}
//Message组件数组
export interface instance {
    id:string,
    VNode:VNode,
    vm:ComponentInternalInstance,
    props:MessageProps,
    ondestory:()=>void
}
//createMessage函数的数据类型
export type CreateMessage = Omit<MessageProps,'Ondestroy' | 'id' | 'zIndex'> 